{{csrf_field()}}
<div class="box-body">
    <div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
        <label for="inputName" class="col-sm-2 control-label">名称</label>
        <div class="col-sm-10">
            <input type="text" name="name" value="{{$name or ''}}" class="form-control" required id="inputName" placeholder="请输入名字">
            @if($errors->has('name'))
                <span class="help-block">
                                                <strong>{{ $errors->first('name') }}</strong>
                                    </span>
            @endif
        </div>
    </div>
    <div class="form-group{{ $errors->has('display_name') ? ' has-error' : '' }}">
        <label for="display_name" class="col-sm-2 control-label">显示名称</label>
        <div class="col-sm-10">
            <input type="text" name="display_name" value="{{$display_name or ''}}" class="form-control" required id="display_name" placeholder="请输入显示名字">
            @if($errors->has('display_name'))
                <span class="help-block">
                                                <strong>{{ $errors->first('display_name') }}</strong>
                                    </span>
            @endif
        </div>
    </div>
    <div class="form-group{{ $errors->has('description') ? ' has-error' : '' }}">
        <label for="description" class="col-sm-2 control-label">描述</label>
        <div class="col-sm-10">
            <textarea name="description" class="form-control" rows="5" required id="description" placeholder="请输入描述">{{$description or ''}}</textarea>
            @if($errors->has('description'))
                <span class="help-block">
                                                <strong>{{ $errors->first('display_name') }}</strong>
                                    </span>
            @endif
        </div>
    </div>

</div>
<!-- /.box-body -->
<div class="box-footer">
    <button type="reset" class="btn btn-default col-md-1 col-md-offset-4">重置</button>
    <button type="submit" class="btn btn-info col-md-1 col-md-offset-1">提交</button>
</div>
<!-- /.box-footer -->